//---------------------------
// Base
//---------------------------

*,
::after,
::before {
    box-sizing: border-box;
    background-repeat: no-repeat
}

// ForFade-in effect

html {
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent
}

::after,
::before {
  vertical-align: inherit;
  text-decoration: inherit
}

html.fade-out {
  opacity: 0;
  transition: none;
}

.wrapper {
  padding: $line-height__medium 0;

  @media #{$large-up} {
    padding: $line-height__base 0;
    margin-top: double($line-height__base);
  }
}

#main {
  width: 100%;
  max-width: 1364px;
  margin-right: auto;
  margin-left: auto
}


// Make the footer stick to the bottom if content is small

.off-canvas-container {
  display: flex;
  min-height: 100vh;
  flex-direction: column;

  .wrapper {
    flex: 1 0 auto;
  }
}

// Fix Evil Icons vertical align

.icon {
  vertical-align: bottom;
}

//黑白切换按钮
.mode {
  float: right;
  position: relative;
  margin: auto;
  width: 42px;
  height: 22px;
  background: #e8e5e5;
  border-radius: 20px;
  cursor: pointer;
  &:after {
    content: "🌞";
    position: absolute;
    top: 0;
    left: 4px;
    font-size: 14px;
    height: 22px;
    line-height: 23px;
    text-align: center;
    transition: all 0.3s ease;
  }
  &.active {
    background: #dacc00;
    &:after {
      content: "🌛";
      transform: translateX(20px);
    }
    span {
      transform: translateX(0);
    }
  }
  span {
    position: absolute;
    z-index: 1;
    margin: 2px;
    display: block;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transform: translateX(20px);
    transition: all 0.4s ease;
  }
}

